<?php
    class DashboardController extends GTL_Action {
         public function init() {
            parent::init();
            /* Initialize action controller here */
            $this->list_sess_unset('controller_project');
            $this->session_search_key = 'controller_project';
            $this->session_search_name = 'search_label';
        }
        public function indexAction() {
            $this->_helper->redirector('list', 'dashboard','default');
        }

       public function listAction() {
            $errorMessage= Array();
            $successmessage = '';
           
            if ($this->_getParam('proj_id') && $this->_getParam('proj_id') != '') {
                $proj_id = $this->_getParam('proj_id');
            }else{
                $this->_helper->redirector('list', 'project', 'default');
            }
            $projectModel = new Model_Project();
            $projectsData = $projectModel->fetchEntryById($proj_id);
            $this->view->projectsData = $projectsData;
            $this->view->proj_id  = $proj_id ;
            
        }
       
   
    }?>